package com.zking.ssm.sys.service.impl;

import com.zking.ssm.sys.mapper.HotelSellerMapper;
import com.zking.ssm.sys.model.HotelSeller;
import com.zking.ssm.sys.service.IHotelSellerService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelSellerServiceImpl implements IHotelSellerService {
   @Autowired
    private HotelSellerMapper hotelSellerMapper;

    public HotelSellerServiceImpl() {
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelSellerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelSeller record) {
        return hotelSellerMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelSeller record) {
        return hotelSellerMapper.insertSelective(record);
    }

    @Override
    public HotelSeller selectByPrimaryKey(Integer id) {
        return hotelSellerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelSeller record) {
        return hotelSellerMapper.updateByPrimaryKeySelective(record); }

    @Override
    public int updateByPrimaryKey(HotelSeller record) {
        return hotelSellerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelSeller> list(HotelSeller record, PageBean pageBean) {

        List<HotelSeller> hotelSellerList = hotelSellerMapper.list(record);
        return hotelSellerMapper.list(record);
    }
}
